package datatypes.film;

public class Film {

	private String name;
	private String id;
	private String initial_release_date;
	// private filmDirectors directed_by;
	private String directorMids;
	private String written_by;
	private String estimated_budget;
	// private filmRoles starring;
	private String starringMids;
	private String genre;
	private String sequel;
	private String prequel;
	private String country_of_origin;
	private int filmId = -1;

	private FilmBudget film_budget;

	public Film(String name, String id, String initial_release_date,
			String written_by, String estimated_budget, String genre,
			String sequel, String prequel, String country_of_origin) {

		this.name = name;
		this.id = id;
		this.initial_release_date = initial_release_date;
		// this.directed_by = new filmDirectors();
		this.written_by = written_by;
		this.estimated_budget = estimated_budget;
		// this.starring = new filmRoles();
		this.genre = genre;
		this.sequel = sequel;
		this.prequel = prequel;
		this.country_of_origin = country_of_origin;
	}

	public void init(Film film) {
		this.name = film.getName();
		this.id = film.getId();
		this.initial_release_date = film.getInitial_release_date();
		// this.directed_by = film.getDirected_by();
		this.written_by = film.getWritten_by();
		this.estimated_budget = film.getEstimated_budget();
		// this.starring = film.getStarring();
		this.genre = film.getGenre();
		this.sequel = film.getSequel();
		this.prequel = film.getPrequel();
		this.country_of_origin = film.getCountry_of_origin();
	}

	public Film() {

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getInitial_release_date() {
		return initial_release_date;
	}

	public void setInitial_release_date(String initial_release_date) {
		this.initial_release_date = initial_release_date;
	}

	public String getWritten_by() {
		return written_by;
	}

	public void setWritten_by(String written_by) {
		this.written_by = written_by;
	}

	public String getEstimated_budget() {
		return this.estimated_budget;
	}

	public void setEstimated_budget(String estimated_budget) {
		this.estimated_budget = estimated_budget;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	public String getSequel() {
		return sequel;
	}

	public void setSequel(String sequel) {
		this.sequel = sequel;
	}

	public String getPrequel() {
		return prequel;
	}

	public void setPrequel(String prequel) {
		this.prequel = prequel;
	}

	public FilmBudget getFilm_budget() {
		return film_budget;
	}

	public void setFilm_budget(FilmBudget film_budget) {
		this.film_budget = film_budget;
		this.estimated_budget = film_budget.getBudget();
	}

	// public void addFilmRole(filmRole film_role){
	// this.starring.addFilmRole(film_role);
	// }

	public int getFilmId() {
		return filmId;
	}

	public void setFilmId(int filmId) {
		this.filmId = filmId;
	}

	public String getCountry_of_origin() {
		return country_of_origin;
	}

	public void setCountry_of_origin(String country_of_origin) {
		this.country_of_origin = country_of_origin;
	}

	public String getStarringMids() {
		return starringMids;
	}

	public void setStarringMids(String starringMids) {
		this.starringMids = starringMids;
	}

	public String getDirectorMids() {
		return directorMids;
	}

	public void setDirectorMids(String directorMids) {
		this.directorMids = directorMids;
	}

}
